<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Array2</title>
	<script type="text/javascript">
		
/*		
	(function(){
		if(!window.createPopup){return};
		(function(){for(i in parent.Array2){Array.prototype[i]=Array2.prototype[i];};parent.Array2=Array;}).call(window.createPopup().document)
	})();

		
		var a = new Array(0,1,2,3,4);
		a.push(5);
		a[6]=7;
		alert(a.length)
	
*/
		function Array2(c){
			if(c&&arguments.length===1&&c.constructor===Number&&0<c){
				this.length	= parseInt(c,10)
			}else if(arguments.length>1){
				this.length = this.push.apply(this, arguments)
			}else if(c.length&&c.constructor!==String){
				this.length = this.push.apply(this, this.$A(c))
			}
		}
		Array2.prototype = new Array;
		Array2.prototype.constructor = Array;
		Array2.prototype.test = function(){
			return this.join(" / ");
		}
		
		var b = new Array2(0,1,2,3,4,5,6,7,8,9);
		b.push(10);
		b.push(11);
		b[12] = 12;
		alert(b.length)
		
		alert(b.test())
		
		
		
	</script>
</head>
<body>
	<h1>Array2</h1>
</body>
</html>